<template>
	<view class="picture">
		<upload-image :max="6" @change='getImgList'></upload-image>
	</view>
</template>

<script>
	import UploadImage from './components/UploadImage.vue'
	/*
	 * UploadImage 组件参数
	 * max  number  默认 3  非必填
	 * @change function 必填 获取上传的图片
	 */
	export default {
		components: {
			UploadImage
		},
		data() {
			return {};
		},
		methods: {
			getImgList(e) {
				console.log(e)
			}
		}
	}
</script>

<style lang="scss" scoped>
	.picture {
		padding: 30rpx 50rpx;
	}
</style>
